package com.tjp.eight.ui.fragment.tabvideo;

import com.tjp.eight.ResultModel;
import com.tjp.eight.ui.fragment.detail.ShareModel;

import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by Administrator on 2017/3/17.
 */
public interface VideoService {
    @Headers({"Content-Type:application/json", "Accept:application/json"})
    @POST("video/list")
    Observable<VideoResultModel> loadData(@Body RequestBody requestBody);

    @Headers({"Content-Type:application/json", "Accept:application/json"})
    @POST("video/count")
    Observable<ResultModel> updateCount(@Body RequestBody req);

    @Headers({"Content-Type:application/json", "Accept:application/json"})
    @POST("first/getshareinfo")
    Observable<ShareModel> getSharedata(@Body RequestBody req);

    @Headers({"Content-Type:application/json", "Accept:application/json"})
    @POST("first/sharefm")
    Observable<ResultModel> sharesuccess(@Body RequestBody req);

    @Headers({"Content-Type:application/json", "Accept:application/json"})
    @GET("video/geturl/")
    Observable<VideoReLoadUrlResultModel> reloadUrl(@Query("vid") String vid);
}
